package com.example.coontroller;

import com.example.domain.Test;
import com.example.service.TestService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.HashMap;
import java.util.List;

@RestController

public class TestController {
    @Resource
    private TestService service;
    @GetMapping("/aa")
    public void aac(){
        List<HashMap<String, Object>> hashMaps = service.selectAll();
        hashMaps.forEach(one -> System.out.printf(one.toString()));
    }


}
